import { useI18n } from 'vue-i18n';

export const APPLICATION_STATUS_PENDING = 0;
export const APPLICATION_STATUS_APPROVED = 1;
export const APPLICATION_STATUS_REJECTED = 2;

export function useStatusList(): Record<number, string> {
  const { t } = useI18n();

  return {
    [APPLICATION_STATUS_PENDING]: t('settings.view.activityApplication.index.status.0'),
    [APPLICATION_STATUS_APPROVED]: t('settings.view.activityApplication.index.status.1'),
    [APPLICATION_STATUS_REJECTED]: t('settings.view.activityApplication.index.status.2'),
  }
}

export const PLATFORM_CAMPUS = 'campus';
export const PLATFORM_COMPETITION = 'competition';

export function usePlatformMap(): Record<string, string> {
  const { t } = useI18n();

  return {
    [PLATFORM_CAMPUS]: t('settings.view.activityApplication.platformOptions.campus'),
    [PLATFORM_COMPETITION]: t('settings.view.activityApplication.platformOptions.competition'),
  };
}
